/*
* @Author: mark
* @Date:   2016-09-27 16:27:19
* @Last Modified by:   mark
* @Last Modified time: 2016-09-29 10:17:44
*/
global.Promise = Promise
Promise = require('./lib/es6-promise.min')
require('./lib/object-assign')
require('./lib/array-find-index')
require('./lib/array-find')
require('./util/wxapi')
const util = require('./util/util')
const api = require('./util/api')
const config = require('./config')
const logger = require('./util/logger')
const interfaces = require('./interface/index')

App(
    {
        onLaunch: function () {
            console.log(' 初始化成功')

        },
        onShow: function () {
            console.log('页面显示')

        },
        onHide: function () {
            console.log('页面隐藏')

        },
        globalData: {
            hasLogin: false,
            tagsList:[],
            noteMediaParamList:[]
        }
    }
)

var appInstance = getApp()
console.log(appInstance) // I am global data